package com.wangdao.wechatmall.bean.vo.admin;

import java.util.Date;

/**
 * @ClassName: LogVO
 * @Description ${DESCRIPTION}
 * @Author Xinhao Yi
 * @Date 2021/7/9  16:48
 */
public class LogVO {
    /**
     * id : 985
     * admin : admin123
     * ip : 111.172.194.156
     * type : 1
     * action : 登录
     * status : true
     * result :
     * comment :
     * addTime : 2021-07-09 16:41:14
     * updateTime : 2021-07-09 16:41:14
     * deleted : false
     */

    private int id;
    private String admin;
    private String ip;
    private int type;
    private String action;
    private boolean status;
    private String result;
    private String comment;
    private Date addTime;
    private Date updateTime;
    private boolean deleted;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAdmin() {
        return admin;
    }

    public void setAdmin(String admin) {
        this.admin = admin;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public static LogVO ok(int id, String admin, String ip, int type, String action, boolean status, String result, String comment, Date addTime, Date updateTime, boolean deleted){
        LogVO logVO = new LogVO();
        logVO.setId(id);
        logVO.setAdmin(admin);
        logVO.setIp(ip);
        logVO.setType(type);
        logVO.setAction(action);
        logVO.setStatus(status);
        logVO.setResult(result);
        logVO.setComment(comment);
        logVO.setAddTime(addTime);
        logVO.setUpdateTime(updateTime);
        logVO.setDeleted(deleted);
        return logVO;
    }


}
